<%--
  Created by IntelliJ IDEA.
  User: jijunxiang
  Date: 2021/11/25
  Time: 20:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>判断验证码是否发送</title>
</head>
<body>
<%
    boolean forgetPassword = (Boolean) session.getAttribute("forgetPassword");
    if (forgetPassword){

        out.print("<script>alert(\"验证码发送成功！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/changePassword.jsp'</script>");
    }else {
        out.print("<script>alert(\"输入的手机号和注册时不一致，验证码发送错误，请从新输入手机号或联系管理员！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/inputNum.jsp'</script>");
    }
%>
</body>
</html>
